package com.mall;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

@Slf4j
//@MapperScan(basePackages = {"com.mall.dao"})
@SpringBootApplication
@EnableCaching
public class MallApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallApplication.class, args);
    }

//    @Autowired
//    CategoryMapper categoryMapper;
//
//    @Autowired
//    OrderMapper orderMapper;

//    @Override
//    public void run(String... args) throws Exception {
////        log.info(String.valueOf(categoryMapper));
//        log.info(orderMapper.selectByPrimaryKey(1).toString());
//        log.info(categoryMapper.queryById(100001).toString());
//        System.exit(0);
//    }
}
